/*
 * Pratama Nur Wijaya (c) 2013 
 * 
 * Project       : OngkirJNE
 * Filename      : OngkirRestClient.java
 * Creation Date : May 17, 2013 time : 10:22:56 PM
 *
 */

package id.pratama.ongkirjne;

import com.loopj.android.http.AsyncHttpClient;
import com.loopj.android.http.AsyncHttpResponseHandler;
import com.loopj.android.http.RequestParams;

public class OngkirRestClient
{
	private static final String		BASE_URL		= "http://api.ongkir.info/cost/find";

	private static final int		DEFAULT_TIMEOUT	= 20 * 1000;

	private static AsyncHttpClient	client			= new AsyncHttpClient();

	public static void post(RequestParams params, AsyncHttpResponseHandler responseHandler)
	{
		client.setTimeout(DEFAULT_TIMEOUT);
		client.post(BASE_URL, params, responseHandler);
	}

}
